package com.agan.workflow.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.agan.common.core.annotation.Excel;
import com.agan.common.core.web.domain.BaseEntity;

/**
 * 流程定义对象 bpm_definition
 * 
 * @author agan
 * @date 2024-01-11
 */
public class BpmDefinition extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 流程定义id */
    private Long defId;

    /** 分类id */
    @Excel(name = "分类id")
    private Long typeId;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String typeName;

    /** 流程名称 */
    @Excel(name = "流程名称")
    private String flowName;

    /** 名称生成规则 */
    @Excel(name = "名称生成规则")
    private String taskNameRule;

    /** act流程定义id */
    @Excel(name = "act流程定义id")
    private String actDeployId;

    /** act流程定义key */
    @Excel(name = "act流程定义key")
    private String actDefKey;

    /** act流程定义id */
    @Excel(name = "act流程定义id")
    private String actDefId;

    /** 版本号 */
    @Excel(name = "版本号")
    private String versionNo;

    /** 流程定义xml */
    @Excel(name = "流程定义xml")
    private String defXml;

    /** 流程描述 */
    @Excel(name = "流程描述")
    private String note;

    /** 部门状态（0正常 1停用） */
    @Excel(name = "部门状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    public void setDefId(Long defId) 
    {
        this.defId = defId;
    }

    public Long getDefId() 
    {
        return defId;
    }
    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }
    public void setTypeName(String typeName) 
    {
        this.typeName = typeName;
    }

    public String getTypeName() 
    {
        return typeName;
    }
    public void setFlowName(String flowName) 
    {
        this.flowName = flowName;
    }

    public String getFlowName() 
    {
        return flowName;
    }
    public void setTaskNameRule(String taskNameRule) 
    {
        this.taskNameRule = taskNameRule;
    }

    public String getTaskNameRule() 
    {
        return taskNameRule;
    }
    public void setActDeployId(String actDeployId) 
    {
        this.actDeployId = actDeployId;
    }

    public String getActDeployId() 
    {
        return actDeployId;
    }
    public void setActDefKey(String actDefKey) 
    {
        this.actDefKey = actDefKey;
    }

    public String getActDefKey() 
    {
        return actDefKey;
    }
    public void setActDefId(String actDefId) 
    {
        this.actDefId = actDefId;
    }

    public String getActDefId() 
    {
        return actDefId;
    }
    public void setVersionNo(String versionNo) 
    {
        this.versionNo = versionNo;
    }

    public String getVersionNo() 
    {
        return versionNo;
    }
    public void setDefXml(String defXml) 
    {
        this.defXml = defXml;
    }

    public String getDefXml() 
    {
        return defXml;
    }
    public void setNote(String note) 
    {
        this.note = note;
    }

    public String getNote() 
    {
        return note;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("defId", getDefId())
            .append("typeId", getTypeId())
            .append("typeName", getTypeName())
            .append("flowName", getFlowName())
            .append("taskNameRule", getTaskNameRule())
            .append("actDeployId", getActDeployId())
            .append("actDefKey", getActDefKey())
            .append("actDefId", getActDefId())
            .append("versionNo", getVersionNo())
            .append("defXml", getDefXml())
            .append("note", getNote())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
